package com.zy.springcloud.alibaba.myhandle;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.zy.springcloud.entities.CommonResult;
import com.zy.springcloud.entities.Payment;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CustomerBlockHandler {
    public static CommonResult handlerException1(BlockException exception){
        return new CommonResult(4444,"客户自定义的 Global 1号");
    }

    public static CommonResult handlerException2(BlockException exception){
        return new CommonResult(4444,"客户自定义的 Global 2号");
    }

}
